<?php
/*
     *    @authors: [P02 Web Development course]
     *              Al Sayed Gamal Abdul Azem <mail.gamal@gmail.com>
     *              --add you name here if you participated.
     *              depiak CAT Authorized foundation http://depiak.catreloaded.net
     *    @version: 0.1a
     *              // increment the letter when you add a minor modification.
     *              // increment the number after the decimal point major modification in the same release.
     *              // increase the number before the decimal point for new releases.
*/
session_start();
init();
/*
     *    Development Phase -&- Error Reporting 
     *    Configuration constants
     *    Validating requests
     *    User Privilage
     *    processing request
     *    sending HTML response back
*/
function init($phase=0){
	  $html;
     if($phase) error_reporting(E_ALL);
     //to make sure that no one will access the configure.php file without being here before.
     define('IWASTHERE',true);
     require ('configure.php');
     require ('functions.php');
     $VRequest =validate_request();
     $html=choose_ctrl($VRequest,$controllers);
     echo $html;
}
?>